package com.yunqing.restkeeper.operator.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunqing.restkeeper.common.utils.Result;
import com.yunqing.restkeeper.operator.api.entity.EnterpriseAccount;

/**
 * @ClassName IEnterpriseAccountService
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/6/19
 */
public interface IEnterpriseAccountService extends IService<EnterpriseAccount> {

    /**
     * 根据名称分页查询
     *
     * @param pageNum
     * @param pageSize
     * @param enterpriseName
     * @return
     */
    IPage<EnterpriseAccount> queryPageByName(int pageNum, int pageSize, String enterpriseName);

    /**
     * 新增帐号
     *
     * @param account
     * @return
     */
    boolean add(EnterpriseAccount account);

    //帐号还原
    boolean recovery(String id);

    //重置密码
    boolean restPwd(String id,String password);

    // 登录
    Result login(String shopId, String phone, String loginPass);
}
